package com.server;

import com.entry.Member;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface MemberService {

    //根据member_name查询
    public int getMemberByMemberName(String member_name);

    //根据id查询
    public Member getMemberById(int member_id);
    //验证用户登录：用户和密码
    public Member getLoginMember(String member_name, String member_pwd);

/*    //注册
    public int getRegisterMember(String member_name,
                                 String member_nickname,
                                 String member_pwd,
                                 String member_gender,
                                 String member_address,
                                 String member_phone,
                                 String member_email);*/
    //注册
    public int getRegisterMemberDate(String member_name,
                                 String member_nickname,
                                 String member_pwd,
                                 String member_gender,
                                 String member_address,
                                 String member_phone,
                                 Date member_birthday,
                                 String member_email);

    //根据邮箱修改用户密码
    public int modifyPasswordByEmail(String member_pwd,String member_email);
    //根据邮箱查找用户
    public List<Member> getEmailMember(@Param("member_email") String member_email);
}
